#include "module.h"
#if defined(OS_LINUX)
#include "epoll.h"
#else
#include "select.h"
#endif  // OS_LINUX
#include "base/core/com_define.h"

Module*  CreateModule() 
{
#if defined(WIN32)
	return new Select();
#elif defined(OS_LINUX)
	return new Epoll();
#endif
}

void DeleteModule(Module* module) 
{
	MMOLOG_ASSERT(module);
	delete module;
}